package org.csmzxy.class2333;

import java.util.HashMap;
public class Example13 {
    public static void main(String[] args){
        HashMap<String,Integer> map = new HashMap<>();
        map.put("钢笔",49);
        map.put("铅笔",20);
        map.put("毛笔",79);
        map.put("铅笔",15);
        System.out.println(map);
        System.out.println("钢笔的价格为"+map.get("钢笔"));
        System.out.println("铅笔的价格为"+map.get("铅笔"));
        System.out.println("毛笔的价格为"+map.get("毛笔"));
    }
}
